package com.beesphere.excel.writer.tests;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;

import com.beesphere.excel.writer.ExcelWriterException;
import com.beesphere.excel.writer.impls.xml.XmlToExcelConverter;

public class XlsxTest {
	public static void main (String[] args) throws ExcelWriterException, IOException {
		OutputStream output = new FileOutputStream ("files/out.xlsx");
		XmlToExcelConverter converter = new XmlToExcelConverter (output);
		converter.setOoxml(true);
		converter.setCharset(Charset.defaultCharset());
		converter.write (new FileInputStream ("files/input.xml"));
		output.close();
	}
}
